:root {
    --primary-color: #6e48aa;
    --secondary-color: #9d50bb;
    --text-color: #2d3436;
    --bg-color: #f5f6fa;
    --card-color: #ffffff;
    --nav-color: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
    --footer-color: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
.dark-mode {
    --primary-color: #9d50bb;
    --secondary-color: #6e48aa;
    --text-color: #f5f6fa;
    --bg-color: #2d3436;
    --card-color: #1e272e;
    --nav-color: #1e272e;
    --footer-color: #1e272e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 170px;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nav-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}
.loader {
    width: 80px;
    height: 80px;
    position: relative;
}
.loader-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #fff0;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}
.loader-inner:nth-child(1) {
    animation-delay: 0.3s;
    border-left-color: #fff;
}
.loader-inner:nth-child(2) {
    animation-delay: 0.6s;
    border-right-color: #fff;
}
.loader-inner:nth-child(3) {
    animation-delay: 0.9s;
    border-bottom-color: #fff;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.preloader-text {
    margin-top: 20px;
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}
@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}
.container1 {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}
.marquee-container {
    width: 100%;
    background-color: rgb(89 80 80 / 0.993);
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
}
.marquee {
    color: #fff;
    font-size: 18px;
    word-spacing: 5px;
}
.main-header {
    background: var(--nav-color);
    box-shadow: var(--shadow);
    width: 100%;
    position: fixed;
    top: 40px;
    z-index: 1001;
}
.second-header {
    background: rgb(89 80 80 / .993);
    box-shadow: var(--shadow);
    width: 100%;
    position: relative; /* या static */
    top: auto;
    z-index: 999;
}

.second-header .logo {
    margin-top: 10px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}
.logo {
    color: #fff;
    text-decoration: none;
    font-size: 30px;
    font-weight: bolder;
}
.header-logo {
    width: 400px;
    height: 100px;
}
.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 3rem;
    margin-top: 10px;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: clamp(0.85rem, 3vw, 1rem);
    white-space: nowrap;
}
.nav-links a:hover {
    color: #f5f6fa;
}
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #fff;
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 20px;
}
.btn {
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    white-space: nowrap;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
.btn-outline {
    background-color: #fff0;
    border: 1px solid #fff;
    color: #fff;
}
.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}
.hero {
    text-align: center;
    padding: 100px 0 60px;
    background: url(photos/aesthetic-dark-wallpaper-background-neon-light.jpg) no-repeat center center/cover;
    color: #fff;
    position: relative;
    margin-top: 50px;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 0.5);
}
.hero-buttons {
    margin: 30px 0;
}
.hero-buttons .btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: #6e48aa;
    color: #fff;
    border: 2px solid #6e48aa;
}
.btn-secondary {
    background-color: #fff0;
    color: #fff;
    border: 2px solid #fff;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgb(0 0 0 / 0.2);
}
.mantra-power {
    text-align: center;
    padding: 40px 0;
    background-color: var(--card-color);
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
}
.mantra-power h6 {
    padding: 10px;
    border-radius: 10px;
    font-size: 30px;
    color: #fff;
    background-color: #6e48aa;
}
.mantra-book {
    position: relative;
    margin: 40px 0;
    padding: 40px;
    background: #f8f3e6;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
    border: 1px solid #e0d5b8;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}
.mantra-book::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    bottom: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, rgb(0 0 0 / 0.05) 0%, #fff0 5%, #fff0 95%, rgb(0 0 0 / 0.05) 100%);
    pointer-events: none;
}
.mantra-book h3 {
    color: #5d4037;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    font-family: "Times New Roman", serif;
    text-shadow: 1px 1px 1px rgb(0 0 0 / 0.1);
}
.mantra-book h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8d6e63, transparent);
}
.mantra-book p {
    margin-bottom: 20px;
    text-align: justify;
    color: #4e342e;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
}
.book-with-image {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.book-text {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}
.book-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 30px;
}
.book-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgb(0 0 0 / 0.3);
    border: 5px solid #f8f3e6;
    transform: rotate(2deg);
    transition: all 0.5s ease;
}
.book-image img:hover {
    transform: rotate(0deg) scale(1.05);
}
.container h2 {
    color: var(--text-color);
    margin: 20px 0;
}
.book-1 {
    background: #f8f3e6;
    border-left: 15px solid #8d6e63;
}
.book-2 {
    background: #e8f5e9;
    border-left: 15px solid #2e7d32;
}
.book-3 {
    background: #fff3e0;
    border-left: 15px solid #e65100;
}
.book-4 {
    background: #e3f2fd;
    border-left: 15px solid #1565c0;
}
.mantra-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    background: var(--card-color);
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.2);
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.gallery-item p {
    padding: 15px;
    background-color: var(--card-color);
    text-align: center;
    color: var(--text-color);
}
.animated-heading {
    text-align: center;
    margin: 60px 0 40px;
    perspective: 1000px;
}
.animated-heading h2 {
    font-size: 2.2rem;
    color: #d80000;
    display: inline-block;
    position: relative;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 0.1);
    background: #e3f2fd;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgb(0 0 0 / 0.1);
    transform-style: preserve-3d;
    transform-origin: center;
}
.animated-heading h2::before,
.animated-heading h2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    border: 2px solid #9d50bb;
    transform: translateZ(-10px);
    animation: borderPulse 4s ease-in-out infinite;
}
.animated-heading h2::after {
    border-color: #6e48aa;
    animation-delay: 0.5s;
}
@keyframes borderPulse {
    0%,
    100% {
        transform: translateZ(-10px);
        opacity: 1;
    }
    50% {
        transform: translateZ(-20px);
        opacity: 0.5;
    }
}
.animated-heading h2 span {
    display: inline-block;
    position: relative;
    animation: textFloat 3s ease-in-out infinite;
}
@keyframes textFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    75% {
        transform: translateY(5px) rotate(-2deg);
    }
}
.notice-box {
    background-color: #fff8e1;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
}
.notice-box h3 {
    color: #d32f2f;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}
.notice-box .notice-title {
    font-size: 1.2rem;
    color: #ff5722;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}
.notice-box p {
    margin-bottom: 15px;
    text-align: justify;
}
.notice-box .highlight {
    font-weight: 700;
    color: #d32f2f;
}
.notice-box .emoji {
    font-size: 1.2em;
    margin-right: 5px;
}
.religious-info-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
    border-top: 5px solid #4caf50;
    position: relative;
    overflow: hidden;
}
.religious-info-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(https://www.transparenttextures.com/patterns/brushed-alum.png);
    opacity: 0.1;
    z-index: 0;
}
.religious-info-box h3 {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}
.religious-info-box .info-title {
    font-size: 1.3rem;
    color: #388e3c;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}
.religious-info-box p {
    margin-bottom: 15px;
    text-align: justify;
    position: relative;
    line-height: 1.7;
}
.religious-info-box .emoji {
    font-size: 1.3em;
    margin-right: 8px;
    vertical-align: middle;
}
.religious-info-box .highlight {
    font-weight: 600;
    color: #2e7d32;
}
.mantra-slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin: 30px 0 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
}
.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.slider-slide {
    min-width: 100%;
    height: 100%;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}
footer {
    background: var(--footer-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.footer-column {
    flex: 1 1 200px;
    min-width: 250px;
    padding: 0 15px;
}
.footer-column h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #fff;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.6rem;
}
.footer-column ul li a {
    color: #dfe6e9;
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}
.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-column p {
    color: #dfe6e9;
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
}
.footer-bottom p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgb(255 255 255 / 0.2);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    font-size: 1rem;
}
.social-links a:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    outline: none;
}
.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}
.menu-toggle,
.menu-toggle2 {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    margin-left: auto;
}
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 160px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 140px);
        background: var(--nav-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 1rem 0;
    }
    .menu-toggle,
    .menu-toggle2 {
        display: block;
    }
    .second-header .nav-links {
        top: 180px;
        height: calc(100vh - 180px);
    }
    .mantra-slider {
        height: 400px;
    }
    .logo {
        color: #fff;
        text-decoration: none;
        font-size: 20px;
        font-weight: bolder;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 180px;
    }
    .nav-buttons {
        margin-left: auto;
        margin-right: 0;
        margin-top: 5px;
    }
    .hero {
        padding: 80px 0 40px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .mantra-power h6 {
        font-size: 24px;
    }
    .mantra-slider {
        height: 350px;
    }
}
@media (max-width: 576px) {
    body {
        padding-top: 180px;
    }
    .mantra-slider {
        height: 300px;
    }
    .book-text,
    .book-image {
        min-width: 100%;
        padding: 20px;
    }
    .second-header .nav-links {
        top: 260px;
        height: calc(100vh - 180px);
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .mantra-power h6 {
        font-size: 20px;
    }
    .mantra-book {
        padding: 25px;
    }
    .mantra-book h3 {
        font-size: 1.5rem;
    }
}
.logo-below-footer {
    width: 100%;
    text-align: center;
    padding: 0 15px;
    cursor: pointer;
}
.logo-below-footer img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
    object-fit: cover;
}
.logo-below-footer img:hover {
    transform: translateY(-5px);
}
@media (max-width: 768px) {
    .logo-below-footer {
        margin: 1.5rem 0;
    }
    .logo-below-footer img {
        max-width: 350px;
    }
}
@media (max-width: 480px) {
    .logo-below-footer {
        margin: 1rem 0;
    }
    .logo-below-footer img {
        max-width: 280px;
    }
}
@media (max-width: 350px) {
    .logo-below-footer img {
        max-width: 220px;
    }
}
@media (min-width: 992px) {
    .logo-below-footer img {
        width: 400px;
        height: 100px;
    }
}
@media (max-width: 768px) {
    .logo-below-footer img {
        width: 350px;
        height: 90px;
    }
}
@media (max-width: 400px) {
    .logo-below-footer img {
        width: 280px;
        height: 70px;
    }
}
@media (max-width: 300px) {
    .logo-below-footer img {
        width: 220px;
        height: 55px;
    }
}
